package com.neusoft.neuiotms.dcam.workflow.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.neusoft.neuiotms.dcam.workflow.model.BaofeiKJ;

public interface BaofeiKJRepository extends JpaRepository<BaofeiKJ, Long> {

    BaofeiKJ findByTaskId(String taskId);

    BaofeiKJ findByWorkOrderNumAndTaskId(String workOrderNum, String taskId);

    List<BaofeiKJ> findByWorkOrderNum(String workOrderNum);

    List<BaofeiKJ> findAllByWorkOrderNumOrderByCreateTimeDesc(String workOrderNum);
}
